<div class="subnav">
    <ul class="crumbs">
        <li>我的位置：</li>
        <li>餐饮空间  </li>
        <li>＞ <a href="{$site_url}">首页</a> </li>
        <li>＞ <a href="{$Categorys[$catid]['url']}">{$Categorys[$catid]['catname']}</a> </li>
        <div class="clear"></div>
    </ul>
</div>

<div class="main">
 <div class="page_main">
     <h1><a>{$Categorys[$catid]['catname']}</a></h1>
     <div class="message">
        <form name="form1" action="{:URL('Home-Post/insert')}" onsubmit="return checkform()" method="post">
        <input name="modulename" value="Feedback" type="hidden">
          <div class="mes_center">
           <p>欢迎您的来信，请完整填写您的信息和意见内容，<span>*</span>项必填，以便我们尽快对您的反馈进行 
           处理并回复您！您的宝贵意见是我们进步的源泉，感谢您的来信！</p>
           姓名：<input type="text" name="username" id="use" /> &nbsp; <span>*</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  
           电话：<input type="text" name="title" id="tele" /> &nbsp; <span>*</span>
           内容：<br /><textarea name="content" id="" cols="30" rows="10"></textarea>
           <input type="submit" value="确认提交" class="sub" />
          </div>
        </form>
     </div> 
 </div>
</div>
<script type="text/javascript">
  function checkform () {

        var phone_reg=/((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/;
        var use=$("#use").val();  //姓名
        var tele=$("#tele").val();  //电话 
        if(use=='')
        {
            alert("姓名不能为空!");
            return false;
        }
        if(!phone_reg.test(tele))
        {
            alert("手机号码或者固话不正确!");
            return false;
        }
    }



</script>
                                                                                                                                                                                                                                                                                                                                                                                                                                                